package com.zy.edu.service;

import com.zy.edu.bean.Classinfo;
import com.baomidou.mybatisplus.service.IService;
import com.zy.edu.bean.InputParam;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author HuangHaiShui
 * @since 2021-07-13
 */
public interface ClassinfoService extends IService<Classinfo> {
    public Map saveOrUpdate(Classinfo classinfo, InputParam inputParam);
    public Map list(Classinfo classinfo, InputParam inputParam);
    public Map dele( Classinfo classinfo);
    /**
     * @Author: HuangHaiShui 
     * @Description:根据用户id查询所属的班级
     *                班级的状态为 1
     * @Date: 15:52 2021/7/14
     * @param userId: 
     * @return: List<Classinfo>
     **/
    public List<Classinfo> findByUserId(String userId);

    Map getById(Classinfo classinfo, InputParam inputParam);

    Map getBySchoolId(String schoolId, String userId);

    /**
     * @Author: HuangHaiShui
     * @Description:根据辖区删除下属所有校区
     * @Date: 10:25 2021/7/21
     * @param inputParam:
     * @return: void
     **/
    Map deleByJruisId(InputParam inputParam);
    void initSystemData();

    Map associatedCourse(InputParam inputParam) throws Exception;


    Map getCourseByClassId(InputParam inputParam);

    Map getAllCourseClassId(InputParam inputParam);

    List<Classinfo> getByParam(InputParam inputParam);


}
